<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Amenities</title>

        <script src="js/jquery/jquery-1.8.3.min.js"></script>

        <link rel="stylesheet" href="css/dbpedia/style.css" type="text/css" />
        <link rel="stylesheet" href="css/dbpedia/highlighter.css" type="text/css" />                
    </head>
    <body>
        <%@include file="header.jsp" %>
        
        <br><br>
        <h1>Amenities <a href="amenity.htm?a=3">(Add)</a></h1>
        <br><br>

        <table style="width:100%;" border="1" cellpadding="5" cellspacing="5">
            <tr>
                <th>ID</th>
                <th>Title</th>
                <th>Description</th>
                <th>Notes</th>
            </tr>
            <c:forEach items="${model.amenities}" var="amenity">
                <tr>
                    <td width="400px;"><a href="amenity.htm?a=2&id=${amenity.id}">${amenity.id}</a></td>
                    <td><a href="amenity.htm?a=2&id=${amenity.id}">${amenity.title}</a></td>
                    <td>${amenity.description}</td>
                    <td>${amenity.notes}</td>
                </tr>
            </c:forEach>
        </table>

        <br><br>
        
    </body>
</html>
